package se.webbzon.boltzmann.game.object.pickup;

import se.webbzon.boltzmann.environment.AbstractEnvironment;
import se.webbzon.boltzmann.game.environment.RegionObjectInflator;
import se.webbzon.boltzmann.game.region.RegionObject;
import se.webbzon.oschi01.worldeditor.WorldObjectDeflation;
import se.webbzon.oschi01.worldobject.WorldObject;

public class PickupInflator extends RegionObjectInflator {
	
	/*============================================================
	Constructors
	============================================================*/

	/** Creates a new pickup inflator. **/
	public PickupInflator(AbstractEnvironment env) {
		super(env,Pickup.worldObjectName);
		setRegionPersistent(true);
	}
	
	/*============================================================
	Public Methods
	============================================================*/

	@Override public RegionObject makeRegionObject(WorldObjectDeflation deflation) {
		return ((PickupDeflation) deflation).makePickup(getEnvironment());
	}

	@Override public WorldObjectDeflation makeDeflation(int deflationProperties, WorldObject[] dependencies) {
		return new PickupDeflation(deflationProperties);
	}

}
